####################################
# Saudi Arabia AI events 34900 - 34999 by Lothos
####################################
################
# Minister of Security Section 34900 - 34909
#############################################
event = { # Hubert Scott-Paine takes power
	id = 34900
	random = no 
	country = SAU
	persistent = yes
	
	trigger = {
		ai = yes
		minister = 63041 # Hubert Scott-Paine
		OR = {
			AND = {
				day = 1
				NOT = { day = 2 }
			}
			NOT = { local_flag = SAUSecurityHubert }
		}
	}

	name = "AI_EVENT"
	style = 0	
	
	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1948 }

	action_a = {
		command = { type = local_setflag which = SAUSecurityHubert }
		command = { type = ministerofsecurity which = 63041 }
		command = { type = dissent value = -1 }
	}
}
################
# Chief of Staff Section 34910 - 34919
#############################################
event = { # T.R.S. Smythe-Cooper takes power
	id = 34910
	random = no 
	country = SAU
	persistent = yes
	
	trigger = {
		ai = yes
		minister = 63053 # T.R.S. Smythe-Cooper
		OR = {
			AND = {
				day = 1
				NOT = { day = 2 }
			}
			NOT = { local_flag = SAUChiefCooper }
		}
		OR = {
			atwar = no
			NOT = { manpower = 20 }
			AND = {
				atwar = yes
				NOT = { minister = 63051 } # William Campbell-Rice
			}
		}
	}

	name = "AI_EVENT"
	style = 0	
	
	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1948 }

	action_a = {
		command = { type = local_setflag which = SAUChiefCooper }
		command = { type = local_clrflag which = SAUChiefRice }
		command = { type = chiefofstaff which = 63053 }
		command = { type = dissent value = -1 }
	}
}
event = { # William Campbell-Rice takes power
	id = 34911
	random = no 
	country = SAU
	persistent = yes
	
	trigger = {
		ai = yes
		atwar = yes
		manpower = 20
		minister = 63051 # William Campbell-Rice
		OR = {
			AND = {
				day = 1
				NOT = { day = 2 }
			}
			NOT = { local_flag = SAUChiefRice }
		}
	}

	name = "AI_EVENT"
	style = 0	
	
	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1948 }

	action_a = {
		command = { type = local_clrflag which = SAUChiefCooper }
		command = { type = local_setflag which = SAUChiefRice }
		command = { type = chiefofstaff which = 63051 }
		command = { type = dissent value = -1 }
	}
}
################
# Head of Intelligence Section 34920 - 34929
#############################################
################
# Chief of the Army Section 34930 - 34939
#############################################
event = { # T.R.S. Smythe-Cooper takes power
	id = 34930
	random = no 
	country = SAU
	persistent = yes
	
	trigger = {
		ai = yes
		minister = 63057 # T.R.S. Smythe-Cooper
		OR = {
			AND = {
				day = 1
				NOT = { day = 2 }
			}
			NOT = { local_flag = SAUArmyCooper }
		}
	}

	name = "AI_EVENT"
	style = 0	
	
	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1948 }

	action_a = {
		command = { type = local_setflag which = SAUArmyCooper }
		command = { type = chiefofarmy which = 63057 }
		command = { type = dissent value = -1 }
	}
}
################
# Armament Minister Section 34940 - 34949
#############################################
event = { # G.G. Aime-Murray takes power
	id = 34940
	random = no 
	country = SAU
	persistent = yes
	
	trigger = {
		ai = yes
		minister = 63035 # G.G. Aime-Murray
		OR = {
			AND = {
				day = 1
				NOT = { day = 2 }
			}
			NOT = { local_flag = SAUArmamentMurray }
		}
	}

	name = "AI_EVENT"
	style = 0	
	
	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1948 }

	action_a = {
		command = { type = local_setflag which = SAUArmamentMurray }
		command = { type = armamentminister which = 63035 }
		command = { type = dissent value = -1 }
	}
}







#############################################
# Regular AI Events 34960 - 34999
#############################################